<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<script type="text/javascript" data-main='../resource/main.js' src="../resource/require.js"></script>
<body>
	<button onclick='test()'>背景设置粉红</button>
   
   <script type="text/javascript">
   	 // require(['main.js中依赖的第三方库名'],function($){})

   	 function test(){
         require['jquery',function($){
              $('body').css({'backgroundColor':'pink'});
         }]
   	 }

   </script>
</body>
</html>